// 115   252 

let gjl = 821+1016
let csd = 133.2
let fire = 118.1



let dmg = gjl * (1 + fire/100);
let bdmg = gjl * (1+csd/100) * (1 + fire/100);

let dmg2 = gjl * (1 + (fire+50)/100)
let bdmg2 = gjl * (1 + (fire+50)/100) * (1+csd/100)

let r1 = (dmg * 1.15 * q(10) * jf(80,83));
let r2 = (bdmg * 1.15 * q(10) * jf(80,83));
let r3 = (dmg * 2.52 * q(10) * jf(80,83));
let r4 = (dmg2 * 2.52 * q(10) * jf(80,83));
let r5 = (bdmg * 2.52 * q(10) * jf(80,83));
let r6 = (bdmg2 * 2.52 * q(10) * jf(80,83));
function jf(youLv, eLv, jf){
    return (100+youLv)/(youLv+200+eLv)
}
// 2056 4795 4505 5538   算法计算的结果
// 1993 4647 4346 5378   实际测试的结果
console.log(r1 , r1/1993);
console.log(r2 , r2/4647);
console.log(r3 , r3/4346);
console.log(r4 , r4/5378);
console.log(r5);
console.log(r6);
function q (resistance) {
    if(resistance < 0) {
        return 1 - resistance/200
    } else if (resistance >=0 && resistance < 75){
        return 1 - resistance/100
    } else {
        return 1/(1+resistance/100*4)
    }
}